<?php
class LRouter{
	public $com;
	public $view;
	public $id;

	public function  __construct($_com, $_view, $_id){
		$this->com = $_com;
		$this->view = $_view;
		$this->id = $_id;
	}

	public function dispatch(){
		if(isset($_GET['com']))
			$this->com = $_GET['com'];
		else $this->com = 'com_content';

		if(isset($_GET['view']))
			$this->view = $_GET['view'];
		else $this->view = 'home';

		if(isset($_GET['id']))
			$this->id = $_GET['id'];
		else $this->id = null;
	}
}